package cn.ad.entity;

import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 素材组
 * @author dongbin.yu
 */
@Alias("adMaterialGroup")
public class AdMaterialGroup extends PO {

	/**
	 * 所属创意， 对应creative.id
	 */
	private int creativeId;

	/**
	 * 模版， 对应ad_template.id
	 */
	private int templateId;

	/**
	 * 素材， 对应ad_material.id
	 */
	private int materialId;

	/**
	 * 模版元素，对应ad_template_spec.id
	 */
	private int templateSpecId;

	/**
	 * 状态 0.可用 -1.删除 1.有效
	 */
	private int status;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;
	
	/**
	 * 交互方式 0 无交互 1 跳转 2 APP下载  
	 */
	private Integer interactionType = 0;
	
	/**
	 * 交互实现标识，对应具体交互类型实现表中的标识。
	 * 当interaction_type = 1时， 对应interaction_redirects.id
	 * 当interaction_type = 2时， 对应interaction_app.id
	 */
	private Integer interactionId;

	public int getCreativeId() {
		return creativeId;
	}

	public void setCreativeId(int creativeId) {
		this.creativeId = creativeId;
	}

	public int getTemplateId() {
		return templateId;
	}

	public void setTemplateId(int templateId) {
		this.templateId = templateId;
	}

	public int getMaterialId() {
		return materialId;
	}

	public void setMaterialId(int materialId) {
		this.materialId = materialId;
	}

	public int getTemplateSpecId() {
		return templateSpecId;
	}

	public void setTemplateSpecId(int templateSpecId) {
		this.templateSpecId = templateSpecId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getInteractionType() {
		return interactionType;
	}

	public void setInteractionType(Integer interactionType) {
		this.interactionType = interactionType;
	}

	public Integer getInteractionId() {
		return interactionId;
	}

	public void setInteractionId(Integer interactionId) {
		this.interactionId = interactionId;
	}
	
}
